<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="sysDefault" />
<script type="text/javascript">
$(document).ready(function() {
	$('#btnExport').click(function(){
		window.open('${contextPath}/biz/statement/supplies/export/list?'+$('#frm_search').serialize(),'_blank');
	});
	var param = {
	        language:  'zh-CN',
	        weekStart: 1,
	        todayBtn:  1,
			autoclose: 1,
			todayHighlight: 1,
			startView: 2,
			minView: 2,
			forceParse: 0,
			format: 'yyyy-mm-dd'
	    };
    $('#startDate').datetimepicker(param);
    $('#endDate').datetimepicker(param);
    $('#createTime').datetimepicker(param);
});
</script>
</head>
<body>
	  <form id="invoiceForm" action="${contextPath}/sys/msg/list" modelAttribute="obj" method="post" class="panel-body" role="form">
		<div class="o-l-action form-inline">
			<div class="form-group" data-date="" data-date-format="yyyy-mm-dd">
		    	 <input type="text" id="receivedBy" name="receivedBy"
		    		value="${obj.receivedBy }" class="form-control input-sm" placeholder="待办人">
			</div>
		    <button type="submit" class="btn btn-primary btn-sm" id="queryBtn">查询</button>
		  </div>
		</form>
		<tags:message content="${message}"/>
		<table class="table table-striped table-hover o-l-table" id="table1">
			<thead>
				<tr>
					<!-- <th style="width: 1px"><input type="checkbox" data-ckb="all"></th> -->
					<th>标题</th>
					<th>发起人</th>
					<th>待办人</th>
					<th>创建时间</th>
					<th>类型</th>
					<th>来源</th>
				</tr>
			</thead>
			<tbody style="overflow: scroll;">
				<c:forEach items="${list}" var="obj">
					<tr data-herf="${contextPath}/sys/msg/${obj.itemId}/view" data-target="_self">
						<%-- <td class="o-l-tab-ckb">
							<input type="checkbox" data-ckb-id="${obj.id }">
						</td> --%>
						<td>${obj.title }</td>
						<td>${obj.createBy }</td>
						<td>${obj.receivedBy }</td>
						<td><fmt:formatDate value="${obj.createDate }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
						<td>${obj.messageType }</td>
						<td>${obj.source }</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
<script type="text/javascript" src="${staticPath}/js/list.js"></script>
</body>
</html>